﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace work4
{
    class Calculation
    {
        private int num1;
        private int num2;

        public Calculation(int num1, int num2)
        {
            this.num1 = num1;
            this.num2 = num2;
        }
        public void Addnum()
        {
            int addnums = this.num1 + this.num2;
            Console.WriteLine("\n两数相加得：" + addnums);
        }
        public void Minusnum()
        {
                int minusnums = this.num1 - this.num2;
                Console.WriteLine("\n两数相减得：" + minusnums);
        }
        public void Multiplynum()
        {
            int multiplynums = this.num1 * this.num2;
            Console.WriteLine("\n两数相乘得：" + multiplynums);
        }
        public void Dividenum()
        {
            int dividenums = this.num1 / this.num2;
            Console.WriteLine("\n两数相加得：" + dividenums);
        }


    }
}
